package com.cdc.util;

import android.app.Activity;
import android.content.Context;
import android.util.DisplayMetrics;

public class MeasureUtil {
	
	/**
	 * 获取屏幕宽高度
	 * @param context
	 * @return
	 */
	public static int[] getScreenSize(Activity context) {
		DisplayMetrics dm = new DisplayMetrics();
		context.getWindowManager().getDefaultDisplay().getMetrics(dm);
		return new int[]{dm.widthPixels, dm.heightPixels};
	}
}
